const Person = {
	name:'Person',
	template:`
		<div>
			<h2>人的姓名：{{pname}}</h2>
			<h2>人的年龄：{{age}}</h2>
			<button @click="showPerson">提示人的信息</button>
			<button @click="age++">修改年龄</button>
		</div>
	`,
	data(){
		return {
			pname:'张三',
			age:18
		}
	},
	methods: {
		showPerson(){
			alert(`${this.pname},${this.age}`)
		}
	},
}